local clsCallObjcStaticMethod = Class("lua/util/clsInstance.lua"):Inherit()

function clsCallObjcStaticMethod:New(...)
	return self
end

function clsCallObjcStaticMethod:callStaticMethod(className, methodName, args, sig)
    local ok, ret = callStaticMethod(className, methodName, args)
    if not ok then
        local msg = string.format("luaoc.callStaticMethod(\"%s\", \"%s\", \"%s\") - error: [%s] ",
                className, methodName, tostring(args), tostring(ret))
        if ret == -1 then
            MOD_DEBUG.d(msg .. "INVALID PARAMETERS")
        elseif ret == -2 then
           MOD_DEBUG.d(msg .. "CLASS NOT FOUND")
        elseif ret == -3 then
           MOD_DEBUG.d(msg .. "METHOD NOT FOUND")
        elseif ret == -4 then
            MOD_DEBUG.d(msg .. "EXCEPTION OCCURRED")
        elseif ret == -5 then
            MOD_DEBUG.d(msg .. "INVALID METHOD SIGNATURE")
        else
            MOD_DEBUG.d(msg .. "UNKNOWN")
        end
    end
    return ok, ret
end

function getClass()
	return clsCallObjcStaticMethod
end
